home *** CD-ROM | disk | FTP | other *** search
- Path: yoyo.cc.monash.edu.au!not-for-mail
- From: bcheung@yoyo.cc.monash.edu.au (Biggles Cheung)
- Newsgroups: comp.lang.c
- Subject: Does C convert float to double internally ?
- Date: 3 Apr 1996 01:52:49 GMT
- Organization: Monash University
- Message-ID: <4jsllh$hkf@harbinger.cc.monash.edu.au>
- NNTP-Posting-Host: yoyo.cc.monash.edu.au
- X-NNTP-Posting-User: bcheung
- X-Newsreader: TIN [UNIX 1.3 950823BETA PL0]
-
- I was told that C compiler automatically converts "float" variable
- internally to "double" for + - * / , etc operations. Is this true?
-
- Can I force the C compiler not to do the conversion as I have an
- assignment on finding out various computing errors of different
- precisions?
-
- My advice from the lecturer is to have temporary variable of
- float to split a long equation to smaller step so that I can maximize
- the impact of single precision number on the evaluation. Is this
- feasible?
-
-
-
-
- _/\/\/\/\/\___/\/\_________________________/\/\_________________________
- _/\/\____/\/\__________/\/\/\/\___/\/\/\/\_/\/\_____/\/\/\_____/\/\/\/\_
- _/\/\/\/\/\___/\/\___/\/\__/\/\_/\/\__/\/\_/\/\___/\/\/\/\/\_/\/\/\/\___
- _/\/\____/\/\_/\/\_____/\/\/\/\___/\/\/\/\_/\/\___/\/\_____________/\/\_
- _/\/\/\/\/\___/\/\/\_______/\/\_______/\/\_/\/\/\___/\/\/\/\_/\/\/\/\___
- ____________________/\/\/\/\___/\/\/\/\_________________________________
-
- / biggles@c031.aone.net.au \
- \ bcheung@yoyo.cc.monash.edu.au / ~~ Biggles CHEUNG
-
-
-
-